<?php
class HhlException extends Exception{
	public function errorMessage(){
		$errorMsg="Error on line ".$this->getLine()." in ".$this->getFile()." <b>".$this->getMessage()."</b>";
		return $errorMsg;
	}
	public function traceInformation(){
		$html = '';
		$trace=$this->getTrace();
		foreach($trace as $error){
			$html.='<h4>Error 1:</h4>';
			var_dump($error);
			$html.="<div>Error on line ".($error['line'])." in file:".($error['file'])." <br />";
			$html.="class:".($error['class']).",type:".($error['type']).",args:";
			foreach($error['args'] as $arg){
				$html.= $arg.",";
			}
			$html.="<br />";
		}
		$html.="trace end :".$this->errorMessage()."</div>";
		return $html;
	}
}

?>